How to Install command-not-found software package in Debian 9 (Stretch)

How to Install command-not-found software package in Debian 9 (Stretch)

command-not-found software package provides Suggest installation of packages in interactive bash sessions, you can install in your Debian 9 (Stretch) by running the commands given below on the terminal,

$ sudo apt-get update
$ sudo apt-get install command-not-found 

command-not-found is installed in your system.

Make ensure the command-not-found package were installed using the commands given below,

$ sudo dpkg-query -l | grep command-not-found *

You will get with command-not-found package name, version, architecture and description in a table

command-not-found package basic information:

Distro Debian 9 stretch
Section Administration Utilities
Package command-not-found
Version 0.2.38-1
Description Suggest installation of packages in interactive bash sessions
Sub Section admin


See Also, How to uninstall or remove command-not-found software package from Debian 9 (Stretch)?